//
//  FSWSegumentionView.h
//  quhuolang_driver
//
//  Created by 曹欣欣 on 2018/3/13.
//  Copyright © 2018年 fusw. All rights reserved.
//
  
#import <UIKit/UIKit.h>

typedef void(^clickBlock)(NSInteger index);

@interface FSWSegumentionView : UIView

@property (nonatomic, strong)NSArray* viewControllers;

/**
 滚动菜单init
 
 @param frame 大小
 @param titles 菜单数组
 @param viewControllers 控制器数组
 @param itemWidth 平均宽度
 @param block 点击选项回调
 @return 实例
 */
- (instancetype)initWithFrame:(CGRect)frame viewControllers:(NSArray<UIViewController*>*)viewControllers titles:(NSArray*)titles itemWidth:(CGFloat)itemWidth andBlock:(clickBlock)block;

/**
 滚动到指定类别
 
 @param pageIndex 指定页
 */
- (void)scrollToPage:(NSInteger)pageIndex;
- (void)orderNumberData:(NSArray *)data;
@end
